//
//  TKIMTrackerHelper.h
//  TKIM_标准版
//
//  Created by liupm on 2017/5/23.
//  Copyright © 2017年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol TKIMTrackerHelperDelegate <NSObject>

/**
 *  @Author lpm, 17-05-23 14:05:44
 *
 *  @brief  对象超时回调
 *
 *  @param obj 超时对象
 */
-(void)objectTimeOut:(NSObject *)obj;

@end

@interface TKIMTrackerHelper : NSObject
//代理
@property(nonatomic,weak) id<TKIMTrackerHelperDelegate>delegate;

/**
 *  @Author lpm, 17-05-23 14:05:42
 *
 *  @brief  设置对象
 *
 *  @param object  对象
 *  @param timeOut 超时时间
 */
-(void)setObject:(NSObject *)object forKey:(NSString *)key timeOut:(NSTimeInterval)timeOut;


/**
 *  @Author lpm, 17-05-23 14:05:42
 *
 *  @brief  设置对象
 *
 *  @param object  对象
 */
-(void)setObject:(NSObject *)object forKey:(NSString *)key;


/**
 *  @Author lpm, 17-05-23 14:05:58
 *
 *  @brief  移除对象
 *
 *  @param object 对象
 */
-(void)removeObjectForKey:(NSString *)key;


/**
 *  @Author lpm, 17-05-23 14:05:26
 *
 *  @brief  清除所有
 */
-(void)cleanAll;

@end
